package com.example.onlinemusic.tools;

import lombok.Data;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/7/25
 * \* Time: 14:42
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
@Data
public class ResponseBodyMessage <T>{
    private int status; //状态码
    private String message;//返回的信息——出错的原因
    private T data; //返回给前端的数据，这里给泛型的原因是我们的返回类型可能有多样

    public ResponseBodyMessage(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
